package com.twu.biblioteca.Goods;

import com.twu.biblioteca.Goods.Goods;

public class Movie extends Goods {
    private final String year;
    private final String direct;
    private final String rate;
    public static final String SEPARATOR = ", ";

    public Movie(String name, String year, String direct, String rate) {
        super(name);
        this.year = year;
        this.direct = direct;
        this.rate = rate;
    }

    public String getYear() {
        return year;
    }

    public String getDirect() {
        return direct;
    }

    public String getRate() {
        return rate;
    }

    public String getMovieInfo() {
        return name+SEPARATOR+year+SEPARATOR+direct+SEPARATOR+rate;
    }


}
